package com.oneandseven.dajia.vo.album;

import com.oneandseven.dajia.entity.album.AlbumInfoEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

@Data
@NoArgsConstructor
public class AlbumInfoVo {
    public AlbumInfoVo(AlbumInfoEntity albumInfoEntity) {
        this.albumName = albumInfoEntity.getAlbumName();
        this.albumDesp = albumInfoEntity.getAlbumDesp();
        this.albumSubtitle = albumInfoEntity.getAlbumSubtitle();
        this.price = albumInfoEntity.getPrice();
        this.albumTagCode = Collections.singletonList(albumInfoEntity.getAlbumTagCode());
    }

    private String albumName;

    private String albumSubtitle;

    private List<String> albumTagCode;

    private String albumDesp;

    private Integer rewriteNums;

    private Long price;
}
